package cn.slg.module.system.controller.wujiang;

import cn.slg.module.system.dal.dataobject.wujiang.WuJiangDO;
import cn.slg.module.system.service.wujiang.WuJiangService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/system/wujiang")
public class WuJiangController {

    @Resource
    private WuJiangService wuJiangService;

    @GetMapping("/get")
    public List<WuJiangDO> getAllWuJiang(){
        List<WuJiangDO> allWuJiang=wuJiangService.getAllWuJiang();
        return allWuJiang;
    }


}
